// mygtalkView.cpp : implementation of the CmygtalkView class
//

#include "stdafx.h"
#include "mygtalk.h"

#include "mygtalkDoc.h"
#include "mygtalkView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CmygtalkView

IMPLEMENT_DYNCREATE(CmygtalkView, CView)

BEGIN_MESSAGE_MAP(CmygtalkView, CView)
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, &CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, &CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, &CView::OnFilePrintPreview)
END_MESSAGE_MAP()

// CmygtalkView construction/destruction

CmygtalkView::CmygtalkView()
{
	// TODO: add construction code here

}

CmygtalkView::~CmygtalkView()
{
}

BOOL CmygtalkView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

// CmygtalkView drawing

void CmygtalkView::OnDraw(CDC* /*pDC*/)
{
	CmygtalkDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	if (!pDoc)
		return;

	// TODO: add draw code for native data here
}


// CmygtalkView printing

BOOL CmygtalkView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CmygtalkView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CmygtalkView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}


// CmygtalkView diagnostics

#ifdef _DEBUG
void CmygtalkView::AssertValid() const
{
	CView::AssertValid();
}

void CmygtalkView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CmygtalkDoc* CmygtalkView::GetDocument() const // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CmygtalkDoc)));
	return (CmygtalkDoc*)m_pDocument;
}
#endif //_DEBUG


// CmygtalkView message handlers
